﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using sg.edu.nus.iss.prettyfaces.BusinessLogicLayer;
using sg.edu.nus.iss.prettyfaces.DataAccessLayer;
using sg.edu.nus.iss.prettyfaces.Models;

namespace sg.edu.nus.iss.prettyfaces.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to ASP.NET MVC!";

            return View();
        }

        public ActionResult About()
        {
            try
            {
                ModelManager man = new ModelManager();
                PrettyModel pretty = man.viewModelProfile(Guid.Empty);
            }
            catch { }
            Pretty face = new Pretty();
            face.Name = "La Min";
            return View(face);
        }
    }
}
